﻿using SqlSugar;
using Zhp.SqlSugar.Entity;

namespace Zhp.Entity.Formula
{
    [SugarTable("Formula_Data")]
    public class FormulaData : BaseEntity<FormulaData, long>
    {
        [SugarColumn(IsNullable = true, ColumnDescription = "业务数据主键")]
        public long? MainId {  get; set; }

        [SugarColumn(IsNullable = false, ColumnDescription = "公式")]
        public string FormulaKey {  get; set; }

        [SugarColumn(IsNullable = false, ColumnDescription = "公式名")]
        public string FormulaName {  get; set; }

        [SugarColumn(IsNullable = false, Length = 500, ColumnDescription = "公式参数逗号分隔")]
        public string FormulaKeys { get; set; }

        [SugarColumn(IsNullable = false, Length = 500, ColumnDescription = "公式名参数逗号分隔")]
        public string FormulaNames { get; set; }

        [SugarColumn(IsNullable = false, Length = 500, ColumnDescription = "变量Id，多个逗号分割")]
        public string VariableIds { get; set; }

        [SugarColumn(IsNullable = true, ColumnDescription = "公式值")]
        public string FormulaValue {  get; set; }

        [SugarColumn(IsNullable = true, ColumnDescription = "实体全名称，如果公式中变量对应的是同一个，则存储，否则为空")]
        public string EntityType {  get; set; }

        [SugarColumn(IsNullable = true, Length = 500, ColumnDescription = "公式变量对应的实体是同一个则存储所有变量的对应的业务数据主键，多个逗号分隔，否则为空")]
        public string VariablePrimaryKeys {  get; set; }
    }
}
